/*
 * @Autor: Gct
 * @Description: 网站资讯api
 * @Date: 2022-04-18 20:19:11
 * @LastEditors: Gct
 * @LastEditTime: 2022-04-18 20:25:11
 */
import {get,post} from '@/utils/request'

/**
 * @description: 分页并根据条件获取资讯列表
 * @param {*}
 * @return {*}
 * @author: Gct
 */
export function pageQuery(data){
  return get('/article/pageQuery',data)
}

/**
 * @description: 修改状态
 * @param {*}
 * @return {*}
 * @author: Gct
 */
 export function changeStatus(data){
  return post('/article/changeStatus',data)
}

/**
 * @description: 保存更新资讯信息
 * @param {*}
 * @return {*}
 * @author: Gct
 */
 export function saveOrUpdate(data){
  return post('/article/saveOrUpdate',data)
}

 /**
  * @description: 获取所有文章分类
  * @param {*} data
  * @return {*}
  * @author: Gct
  */
 export function findAll(data){
  return get('/category/findAll',data)
}